

# 上传文件到远端服务器
# jar 包
SCP -i C:/Users/admin/test1.pem D:/code/idea/big-market/big-market-app/target/big-market-app.jar root@134.175.103.119:/root/big-market/big-market-data
# Dockerfile
SCP -i C:/Users/admin/test1.pem D:/code/idea/big-market/big-market-app/Dockerfile root@134.175.103.119:/root/big-market/big-market-data
# build.sh
SCP -i C:/Users/admin/test1.pem D:/code/idea/big-market/big-market-app/build.sh root@134.175.103.119:/root/big-market/big-market-data
# start.sh
SCP -i C:/Users/admin/test1.pem D:/code/idea/big-market/big-market-app/start.sh root@134.175.103.119:/root/big-market/big-market-data
# docker-compose-app.yml
SCP -i C:/Users/admin/test1.pem D:/code/idea/big-market/docs/dev-ops/docker-compose-app.yml root@134.175.103.119:/root/big-market/big-market-data
# docker-compose-environment.yml
SCP -i C:/Users/admin/test1.pem D:/code/idea/big-market/docs/dev-ops/docker-compose-environment.yml root@134.175.103.119:/root/big-market/big-market-data

# 使用SSH密钥，确保已经在本地和远端服务器之间设置了密钥认证，如果未设置请不要使用这个选项。
ssh -i C:/Users/admin/test1.pem root@134.175.103.119
# shellcheck disable=SC2164
cd /root/big-market/big-market-data
chmod +x ./build.sh ./start.sh

./build.sh
./start.sh

SCP -r -i C:/Users/86187/.ssh/bigmarket.pem E:/clash_linux/clash root@111.230.105.93:/root
ssh -i C:/Users/86187/.ssh/bigmarket.pem root@111.230.105.93
chmod +x /root/clash/start.sh
/root/clash/start.sh
source /etc/profile.d/clash.sh
proxy_on

# 代理
export http_proxy=http://127.0.0.1:7890
export https_proxy=http://127.0.0.1:7890